﻿using MT.Common.Helper;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Text;

namespace MT.Common.EfExtenstion
{
    public  class EfOnConfiguring : DbContext
    {

        protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
        {
            if (!optionsBuilder.IsConfigured)
            {
               
                optionsBuilder.UseSqlServer(ConfigHelper.GetSection("ConnectionStrings", "MedicalBeautyDatabase"));
            }
        }
    }
}
